package com.mlnx.work.pojo.form;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by amanda.shan on 2020/12/28.
 */
@Data
@ApiModel("用户注册的model")
public class UserRegisterForm {

    @ApiModelProperty(value = "用户邮箱")
    @NotBlank(message = "用户邮箱不会能未空")
    private String username;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "验证码不会能未空")
    private String code;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不会能未空")
    private String pswd;

    @ApiModelProperty(value = "用户姓名")
    @NotBlank(message = "用户姓名不会能未空")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "所属部门ID")
    @NotNull(message = "所属部门不会能未空")
    private Integer deptId;
}
